<template>
    <div class="m_right">
            <p></p>
            <div class="mem_tit">
            	<span class="fr" style="font-size:12px; color:#55555; font-family:'宋体'; margin-top:5px;"></span><c:if test="${empty product}">商品上架</c:if><c:if test="${!empty product}">商品修改</c:if>
            </div>
            <form  action="${ctx }/backend/BackendProductServlet?opr=insert" method="post" enctype="multipart/form-data">
            	<input type="hidden" value="${product.id }" name="id"/>
              <table border="0" class="add_tab" style="width:530px;"  cellspacing="0" cellpadding="0">
              <tr>
                <td width="135" align="right">一级分类:</td>
                <td colspan="3" style="font-family:'宋体';">
                <select name="type1" id="type1">
                </select></td>
              </tr>
              <tr id="tr1">
                <td align="right">二级分类:</td>
                <td style="font-family:'宋体';">
                 <select name="type2" id="type2">
                 
                 </select></td>
              </tr>
              <tr id="tr2">
                <td align="right">三级分类:</td>
                <td style="font-family:'宋体';">
                 <select name="type3" id="type3">
                 </select></td>
              </tr>
              <tr>
                <td align="right">商品名称:</td>
                <td style="font-family:'宋体';"><input type="text"  class="add_ipt" value="${product.name }" name="name" id="name"/></td>
                </tr>
                 <tr>
                <td align="right">商品图片:</td>
                <td style="font-family:'宋体';"><c:if test="${product.fileName != null}"><img src="${ctx }/files/${product.fileName }"  style="width:60px;height:60px"/></c:if><input type="file"  class="add_ipt" id="filename" value="" name="filename"/></td>
                </tr>
                 <tr>
                <td align="right">单价:</td>
                <td style="font-family:'宋体';"><input type="text"  class="add_ipt" id="price" value="${product.price }" name="price"/></td>
                </tr>
                 <tr>
                <td align="right">库存:</td>
                <td style="font-family:'宋体';"><input type="text"  class="add_ipt" id="stock" value="${product.stock }" name="stock"/></td>
                </tr>
                 <tr>
                <td align="right">描述:</td>
                <td style="font-family:'宋体';"><input type="text"  class="add_ipt" id="ms" name="ms" value="${product.description }"/></td>
                </tr>
                <tr>
               <td align="right"><input type="submit" value="提交" /></td>
               <td ><input type="submit" value="重置" /></td>
               </tr>
            </table> 
            </form>      
        </div>
</template>
